
//跳转到一个完整的页面
function memberLoadPage(pageUrl,tenderId){
	var param = $('#memberLoginName').val();
	var url = pageUrl + "?memberLoginName=" + param +"&tenderId=" + tenderId;
	 window.location.href=url;
	
}
//点击选择菜单栏菜单选项变色
function menuChange(id){	
	if(id == 'memberHome'){
		$('#memberHome').removeAttr('class').addClass('menuchange');	
	}else{
		$('#memberHome').removeAttr('class').addClass('menuli');	
	}	
	if(id == 'registration'){
		$('#registration').removeAttr('class').addClass('menuchange');	
	}else{
		$('#registration').removeAttr('class').addClass('menuli');	
	}
	if(id == 'enrolllist'){
		$('#enrolllist').removeAttr('class').addClass('menuchange');	
	}else{
		$('#enrolllist').removeAttr('class').addClass('menuli');	
	}
	if(id == 'quotelist'){
		$('#quotelist').removeAttr('class').addClass('menuchange');	
	}else{
		$('#quotelist').removeAttr('class').addClass('menuli');	
	}
	if(id == 'bidlist'){
		$('#bidlist').removeAttr('class').addClass('menuchange');	
	}else{
		$('#bidlist').removeAttr('class').addClass('menuli');	
	}	
	if(id == 'changePass'){
		$('#changePass').removeAttr('class').addClass('menuchange');	
	}else{
		$('#changePass').removeAttr('class').addClass('menuli');	
	}
}

function memberLoadContent(pageUrl){	
	var param = $('#memberLoginName').val();
	var url = pageUrl + "?memberLoginName=" + param;
	$.ajax({
        type: "POST",
        url: url, 
        ataType:'json',
        success: function(url){
           $("#member_content_area").html(url);
        }
    });
}

function memberLoadContent2(pageUrl,tenderId){
	var param = $('#memberLoginName').val();
	var url = pageUrl + "?memberLoginName=" + param +"&tenderId=" + tenderId;
	$.ajax({
        type: "POST",
        url: url,
        dataType:'json',
        success: function(url){
           $("#member_content_area").html(url);
        }
    });
}

function getTenderId(tenderId){
	memberLoadPage('registration_search.action',tenderId);
}

	

